package org.example.car.system.service.impl;


import org.example.car.system.domain.Role;
import org.example.car.system.mapper.RoleMapper;
import org.example.car.system.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: cy
 * @Date: 2024/6/22 10:06
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<Role> selectAll() {
        return roleMapper.selectAll();
    }



    @Override
    public boolean delRole(Integer id) {
        return roleMapper.delRole(id);
    }

    @Override
    public boolean updateRole(Role entity) {
        return roleMapper.updateRole(entity);
    }

    @Override
    public void saveAll(List<Role> list) {
        roleMapper.saveAll(list);
    }
}
